home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: news.emi.net!news
- From: samstar@emi.net
- Subject: RETURN ();
- X-Newsreader: IBM NewsReader/2 v1.2.5
- Reply-To: samstar@emi.net
- Sender: news@emi.net (EmiNet Domain News Admin)
- Organization: EmiNet Domain Internet Services (407)731-0222
- Message-ID: <DMFxxq.7M7@emi.net>
- X-Nntp-Posting-Host: ttyf9.emi.net
- Date: Thu, 8 Feb 1996 05:01:02 GMT
-
- Is there a way to return muliple values to main from a seperate function ?
-
- ex :
-
- int main(void)
- {
- Input_data();
- printf("Here all the input data");
-
- return 0;
- }
-
- int Input_data()
- {
- x=5,y=30,z=10 /* These were gotten by asking questions */
- /* using printf / scanf/fgets (what ever) */
- /*point is they are gotten by question */
-
- return(x,y,z);
- }
-
- how will main be able to see these values ?
-
- I tried this in main didn't help :
-
- int main(x,y,z)
- {
- ect...
- }
-
- if anyone can help... please email me at samstar@emi.net
-
-
- thanks....
-
- samstar
-
-
-